<?php 
/* SVN FILE: $Id$ */
/* UserTournament Test cases generated on: 2009-04-24 21:04:44 : 1240609064*/
App::import('Model', 'UserTournament');

class UserTournamentTestCase extends CakeTestCase {
	var $UserTournament = null;
	var $fixtures = array('app.user_tournament', 'app.user', 'app.tournament', 'app.tournamentgroup');

	function startTest() {
		$this->UserTournament =& ClassRegistry::init('UserTournament');
	}

	function testUserTournamentInstance() {
		$this->assertTrue(is_a($this->UserTournament, 'UserTournament'));
	}

	function testUserTournamentFind() {
		$this->UserTournament->recursive = -1;
		$results = $this->UserTournament->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserTournament' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'user_id'  => 'Lorem ipsum dolor sit amet',
			'tournament_id'  => 'Lorem ipsum dolor sit amet',
			'tournamentgroup_id'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-04-24 21:37:44',
			'modified'  => '2009-04-24 21:37:44'
		));
		$this->assertEqual($results, $expected);
	}
}
?>